from django.db import models


# Create your models here.
class Bookinfo(models.Model):
    btitle = models.CharField(max_length=20, db_column='title')
    bpub_date = models.DateField()
    bread = models.IntegerField(default=0)
    bcomment = models.IntegerField(default=0)
    isDelete = models.IntegerField(default=False)  # Field name made lowercase.

    class Meta:
        # managed = False  # 是否管理表的生命周期(创建、修改、删除)
        db_table = 'bookinfo'
